package cn.good.yan.service;

import cn.good.yan.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 库存服务 - Feign
 *
 * @author shengren.yan
 * @create 2024-02-22
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    //
    @PostMapping("/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
    
}
